updating oE remove_directory
remove_directory
include filesys.e namespace filesys public function remove_directory(sequence dir_name, integer force = 0)
removes a directory.
Parameters:
- name : a sequence, the name of the directory to remove.
- force : an integer, if 1 this will also remove files and sub-directories in the directory. The default is 0, which means that it will only remove the directory if it is already empty.
Returns:
An integer, 0 on failure, 1 on success.
Example 1:
if not remove_directory("the_old_folder") then crash("Filesystem problem - could not remove the old folder") end if
See Also:
Not Categorized, Please Help
|